<template>
    <div>
        <i-quill v-model="value" :min-height="400" @on-change="change"/>
</div>
</template>
<script>
    // import iQuill from '@/components/quill';
// import iQuill from 'public/iviewBasicLib/iviewAdmin/quill'
    import {mapActions, mapState} from "vuex";
    export default {
      // components: { iQuill },

      data () {
          return {
            value: ''
          }
      },
      mounted() {
        this.value=this.currentModule.comments
      },
      computed:{
        ...mapState('compDesign/config',[
          'currentModule',//控件清单
        ]),
      },
      methods:{
        ...mapActions('compDesign/config',[
            'updateComments'
        ]),
        change(){
          this.updateComments(this.value)
        }
      }
    }
</script>